# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer:
pkgname=py3-h11
pkgver=0.13.0
pkgrel=1
pkgdesc="pure-python, bring-your-own-I/O implementation of HTTP/1.1"
url="https://github.com/python-hyper/h11"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov"
source="py3-h11-$pkgver.tar.gz::https://github.com/python-hyper/h11/archive/v$pkgver.tar.gz"
builddir="$srcdir/h11-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest h11
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/h11/tests
}

sha512sums="
a85502eab107aafc6e00e4e31e10d19fa66e9bb7fab10fcfb4835dd33abd9b40e59f0f385250cf74ee9749986899ee97f9125b5d6442ea692917fb99cec33af2  py3-h11-0.13.0.tar.gz
"
